package com.woniuxy.educationplatform.mapper;

import com.woniuxy.educationplatform.bean.AdminBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author unreleased
 * @date 2020/12/8 18:54
 */
@Mapper
public interface SystemMapper {
    /**
     * 通过登录名登录
     * @param loginName 登录名
     * @return AdminBean对象
     */
    @Select("select id,admin_name,login_name,password from admin_info where login_name = #{loginName} and status=0")
    AdminBean findAdminByLoginName(String loginName);
}
